70cd762363939662ab5fcf0cde75321dcac8c9d9,runnel/src/test/java/org/terracotta/runnel/StructArrayStructBuilderTest.java,StructArrayStructBuilderTest,testSkipArray,#,264

Before Change


  public void testSkipArray() throws Exception {
    ByteBuffer bb = struct.encoder()
        .string("name", "joe")
        .structs("mapEntry")
          .string("key", "1")
          .enm("type", Type.STRING)
          .string("string", "one")
        .next()
          .string("key", "2")
          .string("string", "two")
        .end()
        .int64("id", 999L)
        .encode();

    bb.rewind();

After Change


  public void testSkipArray() throws Exception {
    ByteBuffer bb = struct.encoder()
        .string("name", "joe")
        .structs("mapEntry").add()
          .string("key", "1")
          .enm("type", Type.STRING)
          .string("string", "one")
          .end()
        .add()
          .string("key", "2")
          .string("string", "two")
          .end()
        .end()
        .int64("id", 999L)
        .encode();

    bb.rewind();